package com.lhy.mymall.vo;

import lombok.Data;

import java.io.Serializable;
import java.util.ArrayList;
import java.util.Date;
import java.util.List;

/**
 * @author: 卢辉宇
 * @date: 2022/12/15 19:43
 * @description: 前端展示的CategoryVO，对Category实体类添加多一个子列表的类
 */
@Data
public class CategoryVO implements Serializable {
    private Integer id;

    private String name;

    private Integer type;

    private Integer parentId;

    private Integer orderNum;

    private Date createTime;

    private Date updateTime;

    //用于保存子目录的集合
    private List<CategoryVO> chileCategory=new ArrayList<>();
}
